<%@page import="java.util.Date"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<!-- 引入核心标签库 -->
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>添加遗失物品信息</title>
</head>
<body bgcolor="#82CA9C">
	<h1 align="center">添加遗失物品信息</h1>
	<div align="center">
		<label style="font-size: 17px">欢迎您：${USERNAME_IN_SESSION}</lable>
		<a href='${pageContext.request.contextPath}/lostfound?cmd=quit'
			style="font-size: 15px; margin-left: 2%">安全退出</a> <a
			href="${pageContext.request.contextPath}/lostfound?cmd=list"
			style="font-size: 15px; margin-left: 1%">返回</a>
			<form
				action="${pageContext.request.contextPath}/lostfound?flag=lfadd&cmd=add"
				method="post">
				<table cellpadding="8px" cellspacing="0">
					<tr>
						<td>物品名称:</td>
						<td><input id="name" type="text" name="name" placeholder="必填" /></td>
					</tr>
					<tr>
						<td>物品描述:</td>
						<td><input id="describe" type="text" name="describe" /></td>
					</tr>
					<tr>
						<td>遗失地点:</td>
						<td><input id="location" type="text" name="location" /></td>
					</tr>
					<%
						String date = new Date().toLocaleString();
					%>
					<tr>
						<td>遗失时间:</td>
						<td><input id="lostTime" type="datetime"
							name="lostTime" placeholder="格式：2016-4-1" value="<%=date%>" /></td>
					</tr>
					<tr>
						<td>物品数量:</td>
						<td><input id="number" type="number" name="number"
							placeholder="大于或等于0" min="0" value="1" /></td>
					</tr>
					<tr>
						<td>其它信息:</td>
						<td><input id="other" type="text" name="other"
							placeholder="其它补充信息" /></td>
					</tr>
					<tr>
						<td colspan="3" align="center"><input type="submit"
							value="添加信息" /> <input type="reset" value="重置" /></td>
					</tr>
				</table>
			</form> 
	</div>
</body>
</html>




